package com.yswy.backstage.dto.res;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 19401
 * @date 2022/6/9 10:19
 **/
@Data
@NoArgsConstructor
public class PermissionConfigTreeResVO {
    private Long id;
    @JSONField(serialize = false)
    private Long pid;
    @JSONField(serialize = false)
    private Integer orderBy;
    private String name;
    @ApiModelProperty("是否使用 true:使用 false:未使用")
    private boolean isUsed;
    private List<PermissionConfigTreeResVO> children;

    public PermissionConfigTreeResVO(Long id, Long pid, Integer orderBy, String name, boolean isUsed) {
        this.id = id;
        this.pid = pid;
        this.orderBy = orderBy;
        this.name = name;
        this.isUsed = isUsed;
    }
}
